﻿namespace Away.IdentityServer.Core.Services;

/// <summary>
/// API作用域服务
/// </summary>
public interface IApiScopeService
{
    /// <summary>
    /// 获取API作用域列表
    /// </summary>
    /// <returns></returns>
    List<SelectItems> List();

    /// <summary>
    /// 查询API作用域分页列表
    /// </summary>
    /// <param name="search"></param>
    /// <returns></returns>
    IResult Page(ApiScopeSearch search);

    /// <summary>
    /// 添加、编辑API作用域
    /// </summary>
    /// <param name="model"></param>
    void Save(ApiScope model);

    /// <summary>
    /// 删除作用域
    /// </summary>
    /// <param name="ids"></param>
    void Remove(List<int> ids);
}
